package com.qishi.exampleTwo;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;


public class GreetingBeforeAdvice implements MethodBeforeAdvice {


    //目标类方法执行前调用
    public void before(Method method, Object[] args, Object o) throws Throwable {
        String clientName = (String)args[0];
        System.out.println("How are you ! Mr."+clientName+".");
    }
}
